<?php
@session_start();
$link=mysql_connect("localhost", "root", "");

if(!$link){
echo "not connected to database";
}

mysql_select_db("techworks");


$id = $_SESSION['plan_id'];
$services= $_POST['business-services'];
$targetCus= $_POST['target-customers'];
$companyGoals= $_POST['company-goals'];



$q= mysql_query ("insert into tw_executive_summery(`plan_id`,`business-services`, `target-customers`, `company-goals` ) 
                values ('$id','$services', '$targetCus', '$companyGoals')");
echo $_SESSION['plan_id'];

if($q){
	$_SESSION['as'] = "success";
	
	header("location: ../incubatee/wizard.php#tab_tab2 ");
	
	
					
}else {
	echo mysql_error();
	//$_SESSION['as'] = "error";
	//header("location: ../incubatee/wizard.php#tab_tab2");
	
	
}

?>

